﻿using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System.Net;
using XinLife.Application.Interface;

namespace XinLife.Controllers.Admin
{
    [AllowAnonymous]
    public class OAuthController : BaseController
    {
        private IOAuthService _oAuthService;
        public OAuthController(IOAuthService oAuthService)
        {
            _oAuthService = oAuthService;
        }

        /// <summary>
        /// qq回调页面
        /// </summary>
        /// <returns></returns>
        [Route("~/qq")]
        [HttpGet, HttpPost]
        public IActionResult QQBack(string code)
        {
            return Redirect("https://xin-life.cn/admin/qq_back.html?code=" + code);
        }

    }
}
